<?php
if ($gescom) {
echo $form->input('Funding.days', array('div' => false, 'disabled' => $disable, 'label' => __('days ', true)));
echo $form->select('Funding.contract_profils_id', $profils);
} else {
	echo $form->input('Funding.amount', array('div' => false, 'disabled' => $disable, 'label' => __('amount', true)));
}
echo $form->hidden('Funding.ticket_id', array('value' => $ticket_id));
echo $form->select('Funding.receiptbook_id', $Receiptbook, null, array('disabled' => $disable), false);
?>&nbsp;<?php
echo $ajax->submit(__('add_funding', true), array('url' => '/fundings/add/'. $project_id .'/'. $ticket_id, 'update'=>'funding', 'div' => false, 'disabled' => $disable));
?>&nbsp;<?php
echo $ajax->link(__('cancel', true), '/funding/cancel', array('update'=>''));
?>